package RedPacket;

import java.util.ArrayList;
import java.util.List;

public class DemoRedPacket {

    public static void main(String[] args) {
        Leader clay = new Leader("clay", 1000f);

        Normal one = new Normal("A",0f);
        Normal two = new Normal("B",0f);
        Normal three = new Normal("C" , 0f);


        System.out.println(clay.getMoney());
        ArrayList<Float> list = clay.send(100f,3);
        System.out.println(list);
        clay.show();


        one.receiveRedPacket(list);
        one.show();

        two.receiveRedPacket(list);
        two.show();

        three.receiveRedPacket(list);
        three.show();



    }
}
